package com.hy.appMedicine.dto;

import com.hy.medicine.MedicineBasicInfo;
import com.hy.medicine.PageParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class MedicineQueryDTO extends MedicineBasicInfo {
    /**
     * 页码
     */
    @ApiModelProperty("页码")
    private Integer pageNum = 1;

    /**
     * 每页数量
     */
    @ApiModelProperty("每页数量")
    private Integer pageSize = 10;

    private String medicineName;

    /**
     * 分类ID
     */
    @ApiModelProperty("分类ID")
    private String categoryId;

    /**
     * 搜索关键词
     */
    @ApiModelProperty("搜索关键词")
    private String keyword;

    @ApiModelProperty("筛选条件：all-全部, otc-非处方药, rx-处方药")
    private String filter;

    @ApiModelProperty("排序字段：sales-销量, price-价格")
    private String sort;

    @ApiModelProperty("排序方向：asc-升序, desc-降序")
    private String order;
}
